package com.demo.resourcecode.c1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.demo.resourcecode.service.MessageService;

public class XmlBeanFactoryDemo {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("classpath:beanFactoryTest.xml");

		MessageService messageService = context.getBean("messageService", MessageService.class);
		messageService.showMe();
		messageService.changeMe();
	}

}
